There are many narrations from the Prophet and the Imams (peace be upon them) that whoever dies while he was waiting for our matter (i.e. for the government of the Imam) then he shall be considered like whoever died in battle for the Last Imam (may Allah hasten his reappearance), and the said is the best way of ending this life.